home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++,comp.protocols.tcp-ip
- Path: news.ka.inka.de!not-for-mail
- From: olaf@inka.de (Olaf Titz)
- Subject: Re: Socket classes and fork()
- Date: 17 Jan 1996 15:10:07 GMT
- Keywords: sockets, C++, fork
- References: <1996Jan15.192235.21245@etnibsd.uucp>
- NNTP-Posting-Host: tapac.inka.de
- Message-ID: <dlbzgv.fkn@inka.de>
- Organization: INKA e.V., Karlsruhe
-
- Sandeep Pathak <sandeep%etnibsd@uunet.uu.net> wrote:
- > My Socket class also has a reference count similar to that maintained
- > by the kernel for a socket descriptor. But how do I maintain this count
- > if a fork() is done? I can not think of anyway of maintaining
- > consistency w/ the kernel count unless there is some parent <-> child
- > IPC for the Socket object. Anybody want to share some experiences?..
-
- Encapsulate every fork() you use in a routine that does this housekeeping.
-
- olaf
- --
- ___ Olaf.Titz@inka.de or @{stud,informatik}.uni-karlsruhe.de ____
- __ o <URL:http://www.inka.de/~bigred/> <IRC:praetorius>
- __/<_ >> Just as long as the wheels keep on turning round
- _)>(_)______________ I will live for the groove 'til the sun goes down << ____
-